import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { User } from '../../models/User';
import { Loginauth } from '../../service/loginauth';
declare var $: any;
@Component({
  templateUrl: './home.html',
  styleUrls: ['./home.css']
})
export class HomeComponent implements OnInit {
  isAdmin: boolean;
  constructor(private route: ActivatedRoute, private loginauth: Loginauth) {

  }
  ngOnInit() {
    this.loginauth.checkAdmin().subscribe((isadmin) => {
      this.isAdmin = isadmin;
    })
  }

}
